package java69.work717_2;

import java.util.Scanner;

public class TestPrograMokey {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrograMonkey[] pm = new PrograMonkey[]{
                new PrograMonkey("张三",16,"java",1,null,null),
                new PrograMonkey("李四",18,"web",3,null,null),
                new PrograMonkey("王二",19,"C++",4,null,null),
                new PrograMonkey("麻子",17,"Android",2,null,null),
                new PrograMonkey("麻子",17,"Android",2,null,null),
        };
        System.out.println("请输入你要查询第几个人");
        int i = sc.nextInt();
        if (i>=pm.length){
            System.out.println("该人不存在");
        }else {
            pm[i].work();
        }
    }
}
